package com.wlyuan.open;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.wlyuan.open.infrastructure.config.PushProperties;
import com.wlyuan.open.infrastructure.config.QiFanProperties;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author yuanzheng
 */
@SpringBootApplication
@EnableApolloConfig
@EnableDubbo
@EnableConfigurationProperties({
        PushProperties.class,
        QiFanProperties.class
})
@EnableScheduling
public class OpenPlatformPusherApplication {
    public static void main(String[] args) {
        System.setProperty("dubbo.application.logger", "log4j2");
        SpringApplication.run(OpenPlatformPusherApplication.class, args);
    }
}
